from flask import Flask
from movies import movies_bp
from tvs import tvs_bp
from bangumis import bangumis_bp
from identification import identification_bp


def create_app():
    app = Flask(__name__)
    app.config['DEBUG'] = True
    app.register_blueprint(movies_bp)
    app.register_blueprint(identification_bp)
    app.register_blueprint(tvs_bp)
    app.register_blueprint(bangumis_bp)

    return app


if __name__ == '__main__':
    app = create_app()
    app.run()
